
import java.util.Scanner;

public class Work5 {
    public static void main(String[] args) {
        System.out.println("请输入三个数");
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        int c=scanner.nextInt();
        if (a>b){
            int s=a;
            a=b;
            b=s;
        }
        if (a>c){
            int s=a;
            a=c;
            c=s;
        }
        if (b>c){
            int s=b;
            b=c;
            c=s;
        }
        System.out.println("这三个数从小到大排序为"+a+" "+b+" "+c);
    }
}
